/* 导航项容器样式 */
.nav-item-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  padding-right: 8px;
}

/* 导航项标题样式 */
.nav-item-title {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: calc(100% - 40px); /* 为进度指示器留出空间 */
  overflow: hidden;
}

/* 导航项标题文本样式 */
.nav-item-title span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 14px;
}

/* 导航项进度指示器样式 */
.nav-item-progress {
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 12px;
  color: #8c8c8c;
  min-width: 32px;
  text-align: right;
}

/* 自定义菜单样式 */
.custom-menu .ant-menu-item {
  height: auto;
  line-height: 1.5;
  padding: 8px 16px;
  margin: 0;
}

.custom-menu .ant-menu-submenu-title {
  height: auto;
  line-height: 1.5;
  padding: 8px 16px;
  margin: 0;
}

/* 确保菜单项内容不会被截断 */
.custom-menu .ant-menu-title-content {
  display: block;
  width: 100%;
  overflow: hidden;
}

/* 菜单项选中状态样式 */
.custom-menu .ant-menu-item-selected {
  background-color: #e6f7ff;
  border-right: 3px solid #1890ff;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .nav-item-title span {
    font-size: 13px;
  }
  
  .custom-menu .ant-menu-item,
  .custom-menu .ant-menu-submenu-title {
    padding: 6px 12px;
  }
  
  .nav-item-progress {
    min-width: 28px;
    font-size: 11px;
  }
}

/* 确保图标与文本对齐 */
.nav-item-title .anticon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 16px;
}
